
/*******************************************************************************
 * Dreampalace
 *******************************************************************************
 * 
 * Dreampalace is a special dreamdiary which helps dreamers to understand their
 * dreams. You can find also many features in Dreampalace to learn and hold the
 * lucid state in your dreams.
 * 
 * *****************************************************************************
 *
 * Program	   : Dreampalace
 * Autor           : PRo (Peter Rogge)
 * Email           : rogge-peter@gmx.de
 * Homepage        : http://code.google.com/p/dreampalace
 * License	   : GNU General Public License 3.0
 * 
 *******************************************************************************
 * 
 * This file is part of the project Dreampalace. Dreampalace is free software:
 * you can redistribute it and/or modify it under the terms of the GNU General 
 * Public License as published by the Free Software Foundation in version 3 of
 * the License only.
 * 
 * Dreampalace is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * Dreampalace. If not, see <http://www.gnu.org/licenses/>.
 * 
 * The Dreampalace project designates this particular file as subject to the
 * "Classpath" exception as provided by the Dreampalace project in the GPL 
 * Version 3 section of the License file that accompanied this code.
 * 
 *******************************************************************************
 */
package de.pro.dreampalace.manager;

import com.zenjava.jfxflow.actvity.AbstractActivity;
import com.zenjava.jfxflow.navigation.NavigationManager;
import com.zenjava.jfxflow.navigation.Place;
import de.pro.dreampalace.file.api.EFileTyp;
import javafx.event.ActionEvent;

/**
 *
 * @author Peter Rogge (PRo) <rogge-peter@gmx.de>
 */
public class OverviewActivity extends AbstractActivity {
    
    private NavigationManager navigationManager = null;
    
    @Override
    protected void activated() {
        System.out.println("OverviewActivity.activated()");
//        super.activated();
        /**
         * TODO Load all previews from the last 5 days
         *  - blogs, exercises, personal
         */
//        BorderPane.setMargin(spOverviewLeft, new Insets(0, 10, 0, 0));
    }

    public void setNavigationManager(NavigationManager navigationManager)
    {
        this.navigationManager = navigationManager;
    }
    
    public void onActionGoToPlaceDreamEditor(ActionEvent event) {
//        navigationManager.goTo(new Place(PAGE_FILE_DREAM_BLOG_EDITOR));
    }
    
    public void onActionGoToPlaceAbout(ActionEvent event) {
        navigationManager.goTo(new Place(EFileTyp.ABOUT.getPlace()));
    }
    
    public void onActionGoToPlaceLinks(ActionEvent event) {
        navigationManager.goTo(new Place(EFileTyp.LINKS.getPlace()));
    }
    
    public void onActionGoToPlaceLinksEditor(ActionEvent event) {
        navigationManager.goTo(new Place(EFileTyp.LINKS_EDITOR.getPlace()));
    }
    
    public void onActionGoToPlaceNotes(ActionEvent event) {
        navigationManager.goTo(new Place(EFileTyp.NOTES_EDITOR.getPlace()));
    }
}
